package com.example.spring_ai.a2a.server.bean;

import lombok.Data;

@Data
public class TaskResponse {
    private String taskId;
    private String status;     // submitted/working/completed/failed
    private String progress;
    private Object artifact;   // 执行结果

    public TaskResponse(String taskId, String status, String progress, Object artifact) {
        this.taskId = taskId;
        this.status = status;
        this.progress = progress;
        this.artifact = artifact;
    }
}

